package what.the.fun.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import what.the.fun.domain.User;
import what.the.fun.dao.UserDAO;


public class UserServiceImpl implements UserService {

	 @Autowired
	 UserDAO userdao;
	
	 @Override
	 public void insertData(User user) {
		 userdao.insertData(user);
	 }
	
	 @Override
	 public List<User> getUserList() {
		 return userdao.getUserList();
	 }
	
	 @Override
	 public void deleteData(String id) {
		 userdao.deleteData(id);
	  
	 }
	
	 @Override
	 public User getUser(String id) {
		 return userdao.getUser(id);
	 }
	
	 @Override
	 public void updateData(User user) {
		 userdao.updateData(user);
	 }

	@Override
	public User checkLogin(String name, String password) {
		return userdao.checkLogin(name, password);
	}
}

